﻿@inject BaseWebElement _baseWebElement;
@model News_Info
@{
    var CurrentlanguageclassHref = _baseWebElement.GetCurrentlanguageclassHref();
    var CompanyName = _baseWebElement.GetWebElement(WebElementType.CompanyName)?.Value;
    ViewData["Title"] =  Model.Title+" - " + CompanyName;
    var LocationClass = _baseWebElement.GetCurrentRoute(Model.ClassId);
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewData["keywords"] = Model.SeoKeywords;
    ViewData["description"] = Model.SeoDescription;
}
<div class="wrapper">
    <div class="crumbs">
        <div class="container">
            <p class="weizhi">
                @(_baseWebElement.QueryLanText("Location"))：<a href="@(CurrentlanguageclassHref)">@(_baseWebElement.QueryLanText("Home"))</a>
                @if (LocationClass != null && LocationClass.Count > 0)
                {
                    foreach (var item in LocationClass)
                    {
                        @Html.Raw("&gt")<a href="@(item.ClassHref)">@item.ClassName</a>
                    }
                }
                @Html.Raw("&gt")<a href="javascript:;">@Model.Title</a>
            </p>
        </div>
    </div>
    <div class="newsDetail">
        <div class="container">
            <div class="newsTxt">
                <h2>@Model.Title</h2>
                <h5>@Model.NewsTime.ToDateTime().Value.ToString("yyyy/MM/dd")</h5>
                @if (!Model.TitleImg.IsNullOrWhiteSpace())
                {
                    <img src="@Model.TitleImg" />
                }
                @Html.Raw(Model.Content)
            </div>
        </div>


    </div>
</div>

